package com.itshizhan.itjidancideveloper.dao;


import com.itshizhan.itjidancideveloper.models.InviteCode;
import com.itshizhan.itjidancideveloper.response.Response;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface InviteCodeDao extends JpaRepository<InviteCode,Integer>, JpaSpecificationExecutor<InviteCode> {
	InviteCode findOneByCodeAndValid(String code,int valid);
}
